<?php
$this->breadcrumbs=array(
	'Folders'=>array('folder/admin'),
	 $model->name=>array('folder/view','id'=>$model->id),
	 'Set User Role'
);

$this->pageHeader = 'Cấp quyền cho developer up folder '.$model->name;

?>

<?php $this->renderPartial('_header',array('model'=>$model)); ?>

<?php $this->widget('bootstrap.widgets.BootAlert'); ?>

<form action="" method="post" class="well">
	<?php foreach ($users as $user): $checked = in_array($user->id,$user_ids); ?>
	<label class="checkbox">
		<input
			type="checkbox"
			name="user[<?php echo $user->id ?>]"
			value="<?php echo $user->id ?>"
			<?php if($checked):?>checked="checked"<?php endif; ?>
		>
		<?php if ($checked) echo '<b>'; ?>
		<?php echo $user->email; ?>
		<?php if ($checked) echo '</b>'; ?>
	</label>
	<?php endforeach; ?>
	<button type="submit" class="btn btn-primary" name="submit">Submit</button>
</form>
